import { defHttp } from '/@/utils/http/axios';
import { Modal } from 'ant-design-vue';
import { stringFormat } from '/@/utils/common/compUtils';

enum Api {
  list = '/api-iot/iot/collectData/list',
  queryById = '/api-iot/iot/collectData/queryById',
  exportXls = '/api-iot/iot/collectData/export',
  importExcel = '/api-iot/iot/collectData/import',
}

/**
 * 导出api
 */
 export const getExportUrl = Api.exportXls;

 export const getImportUrl = Api.importExcel;

/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({ url: Api.list , params });

/**
 * 查询
 * @param params
 */
export const getCollectDataById = (params) => {
  return defHttp.get({ url: Api.queryById, params });
};